interface IMessageListParams {
  userId?: number;
  friendId: number;
}

interface ISessionInfo {
  name: string;
  avatar: string;
}

interface ISession {
  ownerId: number;
  toId: number;
  sessionId: string;
  chatType: number;
  sessionType: number;
  content: string;
  unread: number;
  isPinned: number;
  isDel: number;
  name: string;
  avatar: string;
  updatedAt: string;
}

type IInsertParams = Omit<ISession, "id" | "isPinned" | "isDel" | "updatedAt">;
export type { IMessageListParams, ISession, ISessionInfo, IInsertParams };
